package com.qianzhou.sqlSession.impl;

import com.qianzhou.pojo.Configuration;
import com.qianzhou.sqlSession.SqlSession;
import com.qianzhou.sqlSession.SqlSessionFactory;

/**
 * @ClassName DefaultSqlSessionFactory
 * @Description TODO
 * @Author zhouqian
 * @Date 2022/1/15 8:29 PM
 * @Version 1.0
 */

public class DefaultSqlSessionFactory implements SqlSessionFactory {
    private Configuration configuration;
    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    public SqlSession openSession() {
        return new DefaultSession(configuration);
    }
}
